<?php

function get_xml_strings($lang='es'){
	$xml=simplexml_load_file('lang/'.$lang.'.xml');
	return $xml;
	}

function get_questions($step, $lang, $form_values){
$xml = get_xml_strings($lang); //Get the questions in XML

$step1='<legend>'.$xml->basic_information.'</legend>
				<div id="form_status_bar"><ul>
				<li class="form_step active"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step"><span class="number">6</span> '.$xml->additional_information.'</li>
				</ul></div>
				<input type="hidden" name="lang" value="'.$lang.'" />
				<input type="hidden" name="email" value="'.$form_values[email].'" />
				<input type="hidden" name="chance" value="2" />
				<div class="form-row"><label for="native_country">'.$xml->native_country.'</label>
				<select name="native_country" class="validate-selection" id="native_country"> <br />
					<option value=""></option>
					<option value="Brasil">'.$xml->country_brazil.'</option>
					<option value="Ecuador">'.$xml->country_ecuador.'</option>
					<option value="España">'.$xml->country_spain.'</option>
					<option value="Estados Unidos">'.$xml->country_usa.'</option>
					<option value="Perú">'.$xml->country_peru.'</option>
					<option value="Venezuela">'.$xml->country_venezuela.'</option>
				</select> <br />
				<span class="help_info">'.$xml->native_country_help.'</span></div>
				<div class="form-row"><label for="password">'.$xml->password_new.'</label><input type="password" name="password" class="required" id="password" /><br />
				<span class="help_info">'.$xml->password_new_help.'</span> </div>
				<div class="form-row"><label for="name">'.$xml->name.'</label><input type="text" class="required" name="name" id="name" /></div>
				<div class="form-row"><label for="last_name">'.$xml->last_name.'</label><input type="text" class="required" name="last_name" id="last_name" /></div>
				<div class="form-row"><label for="gender">'.$xml->gender.'</label><br />
				<div class="option-rows">
					<input type="radio" name="gender" value="Hombre" /> '.$xml->gender_male.' <br />
					<input type="radio" name="gender" class="validate-one-required" value="Mujer" />  '.$xml->gender_female.' <br />
				</div>
				</div>
				<div class="form-row"><label for="language">'.$xml->language.'</label>
				<select name="language" class="validate-selection" id="language">
					<option value=""></option>
					<option value="Inglés">'.$xml->language_english.'</option>
					<option value="Portgués">'.$xml->language_portugese.'</option>
					<option value="Español">'.$xml->language_spanish.'</option>
				</select><br />
				<span class="help_info">'.$xml->language_help.'</span></div>
				<div class="form-row"><label for="other_languages">'.$xml->other_languages.'</label>
				<input type="text" name="other_languages" class="required" id="other_languages" /><br />
				<span class="help_info">'.$xml->other_languages_help.'</span></div>
				<div class="form-row"><label for="residence_place">'.$xml->residence_place.'</label><br />
				<label for="residence_country">'.$xml->residence_country.'</label><input type="text" name="residence_country" class="required" id="residence_country" />
				<label for="residence_state">'.$xml->residence_state.'</label><input type="text" name="residence_state" class="required" id="residence_state" />
				<label for="residence_city">'.$xml->residence_city.'</label><input type="text" name="residence_city" class="required" id="residence_city" />
				</div>
				<div class="form-row"><label for="contact_phone">'.$xml->contact_phone.'</label><input type="text" name="contact_phone" class="required validate-digits" id="contact_phone" /><br />
				<span class="help_info">'.$xml->phone_help.'</span></div>
				<input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">';
				
$step_remember = '<legend>'.$xml->remember_data.'</legend>
				<input type="hidden" name="id" value="'.$form_values[verified_mail].'" />
				<input type="hidden" name="chance" value="9" />
				<input type="hidden" name="lang" value="'.$lang.'" />
				<div class="form-row"><label for="password">'.$xml->password_old.'</label><input type="password" class="required" name="password" id="password" /><br />
				<span class="help_info">'.$xml->password_old_help.'</span> </div>
				<input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">';
				
$step2 = '<legend>'.$xml->personal_data.'</legend>
			<div id="form_status_bar"><ul>
				<li class="form_step"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step active"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step"><span class="number">6</span> '.$xml->additional_information.'</li>
			</ul></div>
			<input type="hidden" name="id" value="'.$form_values[last_id].'" />
			<input type="hidden" name="chance" value="3" />
			<input type="hidden" name="lang" value="'.$lang.'" />
			<div class="form-row"><label for="birth_city">'.$xml->birth_city.'</label><input type="text" name="birth_city" id="birth_city" class="required" /></div>
			<div class="form-row"><label for="birth_date">'.$xml->birth_date.'</label><input type="text" size="10" name="birth_date" id="birth_date" class="required validate-date-au" /><br />
			<span class="help_info">'.$xml->birth_date_help.'</span>
			</div>
			<div class="form-row"><label for="work_phone"><label for="work_phone">'.$xml->work_phone.'</label><input type="text" name="work_phone" id="work_phone" class="required validate-digits" /></label><br />
			<span class="help_info">'.$xml->phone_help.'</span></div>
			<div class="form-row"><label for"fax">'.$xml->fax.'</label><input type="text" name="fax" id="fax" class="validate-digits" /></div>
			<div class="form-row"><label for="cellphone">'.$xml->cellphone.'</label><input type="text" name="cellphone" id="cellphone" class="required validate-digits" /><br />
			<span class="help_info">'.$xml->phone_help.'</span></div>
			<div class="form-row"><label for="marital_status">'.$xml->marital_status.'</label><select name="marital_status" id="marital_status" class="validate-selection">
				<option value=""></option>
				<option value="Soltero">'.$xml->single.'</option>
				<option value="Casado">'.$xml->married.'</option>
				<option value="Viudo">'.$xml->widow.'</option>
				<option value="Divorciado">'.$xml->divorced.'</option>
			</select></div>
			<div class="form-row"><label for="number_of_childs">'.$xml->number_of_childs.'</label><input type="text" size="2" name="number_of_childs" id="number_of_childs" class="required validate-digits" /></div>
			<div class="form-row"><label for="name_and_age_childs">'.$xml->name_and_age_childs.'</label><br /><textarea cols="50" rows="4" name="name_and_age_childs" id="name_and_age_childs"></textarea><br />
			<span class="help_info">'.$xml->name_and_age_childs_help.'</span></div>
			<div class="form-row"><label for="emergency_contact">'.$xml->emergency_contact.'</label><br /><textarea cols="50" rows="4" name="emergency_contact" id="emergency_contact" class="required"></textarea><br />
			<span class="help_info">'.$xml->emergency_contact_help.'</span></div>
			<div class="form-row"><label for="study_level">'.$xml->study_level.'</label><select name="study_level" id="study_level" class="validate-selection">
				<option value=""></option>
				<option value="Primaria">'.$xml->elementary.'</option>
				<option value="Bachillerato">'.$xml->high_school.'</option>
				<option value="Técnico">'.$xml->tecnic.'</option>
				<option value="Tecnólogo">'.$xml->tecnologic.'</option>
				<option value="Universitario">'.$xml->university.'</option>
				<option value="Maestría">'.$xml->master.'</option>
				<option value="Doctorado">'.$xml->phd.'</option>
			</select><br />
			<span class="help_info">'.$xml->study_level_help.'</span></div>
			<div class="form-row"><label for="current_ocupation">'.$xml->current_ocupation.'</label><input type="text" name="current_ocupation" id="current_ocupation" class="required" /></div>
			<br /><input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">
';

$step3 = '<legend>'.$xml->aditional_information.'</legend>
			<div id="form_status_bar"><ul>
				<li class="form_step"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step active"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step"><span class="number">6</span> '.$xml->additional_information.'</li>
			</ul></div>
			<input type="hidden" name="id" value="'.$form_values[id].'" />
			<input type="hidden" name="chance" value="4" />
			<input type="hidden" name="lang" value="'.$lang.'" />
			<div class="form-row"><label for="brief_description">'.$xml->brief_description.'</label><br /><textarea cols="50" rows="5" name="brief_description" id="brief_description" class="required"></textarea></div>
			<div class="form-row"><label for="places_where_lived">'.$xml->places_where_lived.'</label><br /><textarea cols="50" rows="5" name="places_where_lived" id="places_where_lived" class="required"></textarea></div>
			<div class="form-row"><label for="considered_traveler">'.$xml->considered_traveler.'</label><br /><textarea cols="50" rows="5" name="considered_traveler" id="considered_traveler" class="required"></textarea></div>
			<div class="form-row"><label for="why_participate">'.$xml->why_participate.'</label><br /><textarea cols="50" rows="5" name="why_participate" id="why_participate" class="required"></textarea></div>
			<div class="form-row"><label for="has_visited_colombia">'.$xml->has_visited_colombia.'</label><br />
			<div class="option-rows">
				<input type="radio" value="Si" name="has_visited_colombia" />'.$xml->yes.'<br />
				<input type="radio" name="has_visited_colombia" class="validate-one-required" value="No" />'.$xml->no.'<br />
			</div>
			<div class="form-row"><label for"how_many_times">'.$xml->how_many_times.'</label><br /><textarea cols="50" rows="5" name="how_many_times"></textarea></div>
			<div class="form-row"><label for="what_know">'.$xml->what_know.'</label><br /><textarea cols="50" rows="5" name="what_know" class="required"></textarea></div>
			<div class="form-row"><label for="know_admire">'.$xml->know_admire.'</label><br />
			<div class="option-rows">
				<input type="radio" value="Si" name="know_admire" />'.$xml->yes.'<br />
				<input type="radio" name="know_admire" class="validate-one-required" value="No" />'.$xml->no.'<br />
			</div>
			</div>
			<div class="form-row"><label for="who_why">'.$xml->who_why.'</label><br /><textarea cols="50" rows="5" name="who_why"></textarea></div>
			<div class="form-row"><label for="opinion">'.$xml->opinion.'</label><br /><textarea cols="50" rows="5" name="opinion" class="required"></textarea></div>
			<div class="form-row"><label for="what_attract">'.$xml->what_attract.'</label><br /><textarea cols="50" rows="5" name="what_attract" class="required"></textarea></div>
			<div class="form-row"><label for="what_like">'.$xml->what_like.'</label><br /><textarea cols="50" rows="5" name="what_like" class="required"></textarea></div>
			<div class="form-row"><label for="what_not_like">'.$xml->what_not_like.'</label><br /><textarea cols="50" rows="5" name="what_not_like" class="required"></textarea></div>
			<div class="form-row"><label for="how_frequently">'.$xml->how_frequently.'</label><br /><textarea cols="50" rows="2" name="how_frequently" class="required"></textarea></div>
			<div class="form-row"><label for="kind_destinations">'.$xml->kind_destinations.'</label><br /><textarea cols="50" rows="5" name="kind_destinations" class="required"></textarea></div>
			<div class="form-row"><label for="kind_activities">'.$xml->kind_activities.'</label><br /><textarea cols="50" rows="5" name="kind_activities" class="required"></textarea></div>
			<div class="form-row"><label for="left_country">'.$xml->left_country.'</label><br />
			<div class="option-rows">
				<input type="radio" value="Si" name="left_country" />'.$xml->yes.'<br />
				<input type="radio" name="left_country" class="validate-one-required" value="No" />'.$xml->no.'<br />
			</div>
			</div>
			<div class="form-row"><label for="worst_experience">'.$xml->worst_experience.'</label><br /><textarea cols="50" rows="5" name="worst_experience" class="required"></textarea></div>
			<div class="form-row"><label for="best_experience">'.$xml->best_experience.'</label><br /><textarea cols="50" rows="5" name="best_experience" class="required"></textarea></div>
			<div class="form-row"><label for="your_life_experience">'.$xml->your_life_experience.'</label><br /><textarea cols="50" rows="5" name="your_life_experience" class="required"></textarea></div>
			<br /><input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">		
';
$step4 = '<legend>'.$xml->competition.'</legend>
			<div id="form_status_bar"><ul>
				<li class="form_step"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step active"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step"><span class="number">6</span> '.$xml->additional_information.'</li>
			</ul></div>
			<input type="hidden" name="id" value="'.$form_values[id].'" />
			<input type="hidden" name="chance" value="5" />
			<input type="hidden" name="lang" value="'.$lang.'" />
			<div class="form-row"><label for="competitive_person">'.$xml->competitive_person.'</label>
			<div class="option-rows">
				<input type="radio" value="Si" name="competitive_person" />'.$xml->yes.'
				<input type="radio" name="competitive_person" class="validate-one-required" value="No" />'.$xml->no.'
			</div>
			<label for="competitive_why">'.$xml->competitive_why.'</label><br /><textarea cols="50" rows="5" name="competitive_why" class="required"></textarea></div>
			<div class="form-row"><label for="teamwork">'.$xml->teamwork.'</label><br /><textarea cols="50" rows="5" name="teamwork" class="required"></textarea></div>
			<div class="form-row"><label for="sports">'.$xml->sports.'</label><br /><textarea cols="50" rows="5" name="sports" class="required"></textarea></div>
			<div class="form-row"><label for="skills">'.$xml->skills.'</label><br /><textarea cols="50" rows="5" name="skills" class="required"></textarea></div>
			<div class="form-row"><label for="hobbies">'.$xml->hobbies.'</label><br /><textarea cols="50" rows="5" name="hobbies" class="required"></textarea></div>
			<div class="form-row"><label for="musical_instrument">'.$xml->musical_instrument.'</label><br /><textarea cols="50" rows="5" name="musical_instrument" class="required"></textarea></div>
			<div class="form-row"><label for="personality_trait">'.$xml->personality_trait.'</label><br /><textarea cols="50" rows="5" name="personality_trait" class="required"></textarea></div>
			<div class="form-row"><label for="physical_skills">'.$xml->physical_skills.'</label><br /><textarea cols="50" rows="5" name="physical_skills" class="required"></textarea></div>
			<div class="form-row"><label for="advantages_disadvantages_women">'.$xml->advantages_disadvantages_women.'</label><br /><textarea cols="50" rows="5" name="advantages_disadvantages_women" class="required"></textarea></div>
			<div class="form-row"><label for="advantages_disadvantages_man">'.$xml->advantages_disadvantages_man.'</label><br /><textarea cols="50" rows="5" name="advantages_disadvantages_man" class="required"></textarea></div>
			<div class="form-row"><label for="good_representative">'.$xml->good_representative.'</label><br /><textarea cols="50" rows="5" name="good_representative" class="required"></textarea></div>
			<br /><input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">
';

$step5='<legend>'.$xml->personality.'</legend>
			<div id="form_status_bar"><ul>
				<li class="form_step"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step active"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step"><span class="number">6</span> '.$xml->additional_information.'</li>
			</ul></div>
			<input type="hidden" name="id" value="'.$form_values[id].'" />
			<input type="hidden" name="chance" value="6" />
			<input type="hidden" name="lang" value="'.$lang.'" />
			<div class="form-row"><label for="exciting_moment">'.$xml->exciting_moment.'</label><br /><textarea cols="50" rows="5" name="exciting_moment" class="required"></textarea></div>
			<div class="form-row"><label for="three_adjectives">'.$xml->three_adjectives.'</label><br /><textarea cols="50" rows="5" name="three_adjectives" class="required"></textarea></div>
			<div class="form-row"><label for="pride">'.$xml->pride.'</label><br /><textarea cols="50" rows="5" name="pride" class="required"></textarea></div>
			<div class="form-row"><label for="shame">'.$xml->shame.'</label><br /><textarea cols="50" rows="5" name="shame" class="required"></textarea></div>
			<div class="form-row"><label for="angry">'.$xml->angry.'</label><br /><textarea cols="50" rows="5" name="angry" class="required"></textarea></div>
			<div class="form-row"><label for="laugh">'.$xml->laugh.'</label><br /><textarea cols="50" rows="5" name="laugh" class="required"></textarea></div>
			<div class="form-row"><label for="cry">'.$xml->cry.'</label><br /><textarea cols="50" rows="5" name="cry" class="required"></textarea></div>
			<div class="form-row"><label for="time">'.$xml->time.'</label><br /><textarea cols="50" rows="5" name="time" class="required"></textarea></div>
			<div class="form-row"><label for="lottery">'.$xml->lottery.'</label><br /><textarea cols="50" rows="5" name="lottery" class="required"></textarea></div>
			<div class="form-row"><label for="qualify_1_5">'.$xml->qualify_1_5.'</label><br />
			<span class="help_info">'.$xml->qualify_1_5_help.'</span><br />
			<div class="aptitude-questions">
			<label for="drive_manual_car">'.$xml->drive_manual_car.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="drive_manual_car" /> 1
				<input type="radio" value="2" name="drive_manual_car" /> 2
				<input type="radio" value="3" name="drive_manual_car" /> 3
				<input type="radio" value="4" name="drive_manual_car" /> 4
				<input type="radio" value="5" name="drive_manual_car" class="validate-one-required"/> 5
			</div>
			<label for="drive_automatic_car">'.$xml->drive_automatic_car.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="drive_automatic_car" /> 1
				<input type="radio" value="2" name="drive_automatic_car" /> 2
				<input type="radio" value="3" name="drive_automatic_car" /> 3
				<input type="radio" value="4" name="drive_automatic_car" /> 4
				<input type="radio" value="5" name="drive_automatic_car" class="validate-one-required"/> 5
			</div>
			<label for="drive_motorcycle">'.$xml->drive_motorcycle.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="drive_motorcycle" /> 1
				<input type="radio" value="2" name="drive_motorcycle" /> 2
				<input type="radio" value="3" name="drive_motorcycle" /> 3
				<input type="radio" value="4" name="drive_motorcycle" /> 4
				<input type="radio" value="5" name="drive_motorcycle" class="validate-one-required"/> 5
			</div>
			<label for="swim">'.$xml->swim.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="swim" /> 1
				<input type="radio" value="2" name="swim" /> 2
				<input type="radio" value="3" name="swim" /> 3
				<input type="radio" value="4" name="swim" /> 4
				<input type="radio" value="5" name="swim" class="validate-one-required"/> 5
			</div>
			<label for="diving">'.$xml->diving.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="diving" /> 1
				<input type="radio" value="2" name="diving" /> 2
				<input type="radio" value="3" name="diving" /> 3
				<input type="radio" value="4" name="diving" /> 4
				<input type="radio" value="5" name="diving" class="validate-one-required"/> 5
			</div>
			<label for="run">'.$xml->run.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="run" /> 1
				<input type="radio" value="2" name="run" /> 2
				<input type="radio" value="3" name="run" /> 3
				<input type="radio" value="4" name="run" /> 4
				<input type="radio" value="5" name="run" class="validate-one-required"/> 5
			</div>
			<label for="use_videocamera">'.$xml->use_videocamera.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="use_videocamera" /> 1
				<input type="radio" value="2" name="use_videocamera" /> 2
				<input type="radio" value="3" name="use_videocamera" /> 3
				<input type="radio" value="4" name="use_videocamera" /> 4
				<input type="radio" value="5" name="use_videocamera" class="validate-one-required"/> 5
			</div>
			<label for="take_photos">'.$xml->take_photos.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="take_photos" /> 1
				<input type="radio" value="2" name="take_photos" /> 2
				<input type="radio" value="3" name="take_photos" /> 3
				<input type="radio" value="4" name="take_photos" /> 4
				<input type="radio" value="5" name="take_photos" class="validate-one-required"/> 5
			</div>
			<label for="dance">'.$xml->dance.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="dance" /> 1
				<input type="radio" value="2" name="dance" /> 2
				<input type="radio" value="3" name="dance" /> 3
				<input type="radio" value="4" name="dance" /> 4
				<input type="radio" value="5" name="dance" class="validate-one-required"/> 5
			</div>
			<label for="sing">'.$xml->sing.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="sing" /> 1
				<input type="radio" value="2" name="sing" /> 2
				<input type="radio" value="3" name="sing" /> 3
				<input type="radio" value="4" name="sing" /> 4
				<input type="radio" value="5" name="sing" class="validate-one-required"/> 5
			</div>
			<label for="talk_to_strangers">'.$xml->talk_to_strangers.'</label>
			<div class="option-rows">
				<input type="radio" value="1" name="talk_to_strangers" /> 1
				<input type="radio" value="2" name="talk_to_strangers" /> 2
				<input type="radio" value="3" name="talk_to_strangers" /> 3
				<input type="radio" value="4" name="talk_to_strangers" /> 4
				<input type="radio" value="5" name="talk_to_strangers" class="validate-one-required"/> 5
			</div>
			</div>
			</div>
			<br /><input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">
';
$step6 = '<legend>'.$xml->additional_information.'</legend>
			<div id="form_status_bar"><ul>
				<li class="form_step"><span class="number">1</span> '.$xml->basic_information.'</li>
				<li class="form_step"><span class="number">2</span> '.$xml->personal_data.'</li>
				<li class="form_step"><span class="number">3</span> '.$xml->aditional_information.'</li>
				<li class="form_step"><span class="number">4</span> '.$xml->competition.'</li>
				<li class="form_step"><span class="number">5</span> '.$xml->personality.'</li>
				<li class="form_step active"><span class="number">6</span> '.$xml->additional_information.'</li>
			</ul></div>
			<input type="hidden" name="id" value="'.$form_values[id].'" />
			<input type="hidden" name="chance" value="7" />
			<input type="hidden" name="lang" value="'.$lang.'" />
			<div class="form-row"><label for="travel_problems">'.$xml->travel_problems.'</label><br /><textarea cols="50" rows="5" name="travel_problems" class="required"></textarea></div>
			<div class="form-row"><label for="allergies">'.$xml->allergies.'</label><br /><textarea cols="50" rows="5" name="allergies" class="required"></textarea></div>
			<div class="form-row"><label for="phobias">'.$xml->phobias.'</label><br /><textarea cols="50" rows="5" name="phobias" class="required"></textarea></div>
			<div class="form-row"><label for="illness">'.$xml->illness.'</label><br /><textarea cols="50" rows="5" name="illness" class="required"></textarea></div>
			<div class="form-row"><label for="medicines">'.$xml->medicines.'</label><br /><textarea cols="50" rows="5" name="medicines" class="required"></textarea></div>
			<div class="form-row"><label for="law_trouble">'.$xml->law_trouble.'</label><br /><textarea cols="50" rows="5" name="law_trouble" class="required"></textarea></div>
			<div class="form-row"><label for="visa_denied">'.$xml->visa_denied.'</label><br /><textarea cols="50" rows="5" name="visa_denied" class="required"></textarea></div>
			<div class="form-row"><label for="tv_show">'.$xml->tv_show.'</label><br /><textarea cols="50" rows="5" name="tv_show" class="required"></textarea></div>
			<br /><input type="button" value="'.$xml->continue_button.'" onclick="valid.validate()">
';
$step7= $xml->goodbye_message.'';
$subject=$xml->subject-'';
$message=$xml->mail_message.'';
$step_registered=$xml->registered_yet.'';

				
switch ($step){
		case 1:
		return $step1;
		break;
		
		case R:
		return $step_remember;
		break;
		
		case 9;
		return $step_registered;
		break;
		
		case 2:
		return $step2;
		break;
		
		case 3:
		return $step3;
		break;
		
		case 4:
		return $step4;
		break;
		
		case 5:
		return $step5;
		break;
		
		case 6:
		return $step6;
		break;
		
		case 7:
		$user_mail=getEmail($form_values[id]);
		mail($user_mail,$subject, $message,"FROM: info@bdat.com\nX-Mailer: PHP");
		return $step7;
		break;
	}
}

?>
